﻿#pragma once

#include <QThread>
#include <QTcpSocket>
#include "client_base.h"

class ClientQt : public ClientBase {
public:
	explicit ClientQt();
	virtual ~ClientQt();
	virtual void Start(unsigned short port, const char* message) override;
	virtual void Stop() override;
	virtual void Wait() override;

private:
	void OnReadyRead();
	QTcpSocket socket_;
	QThread thread_;

};